package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmy.cultivate.entity.FileDowload;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FileDowloadMapper extends BaseMapper<FileDowload> {


    @Select("select part_number from file_dowload where file_name = #{fileName}")
    public abstract List<Integer> selectSection(@Param("fileName") String fileName);

    @Select("select part_number from file_dowload where md5 = #{resumableIdentifier}")
    public abstract List<Integer> selectSectionByMd5(@Param("resumableIdentifier") String resumableIdentifier);
}
